<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Services\EvaluateService;
use Illuminate\Http\Request;

class EvaluateController extends Controller
{
    public function evaluateList(EvaluateService $evaluateService , Request $request)
    {
        $params = $request->input();
        $result = $evaluateService->getList($params);
        return $this->responseSuccess($result);
    }

    public function evaluateInfo(EvaluateService $evaluateService , Request $request)
    {
        $params = $request->input();
        $result = $evaluateService->getInfo($params);
        return $this->responseSuccess($result);
    }

    public function sendMessageToGlobe(EvaluateService $evaluateService , Request $request)
    {
        $params = $request->input();
        $result = $evaluateService->sendMessageToGlobe($params);
        return $this->responseSuccess($result);
    }

}
